package com.loukou.lkt.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.loukou.lkt.web.annotation.AuthCheck;

@Controller
@RequestMapping("/test")
public class TestController {
	
	@RequestMapping("test1")
	@AuthCheck(privileges = {"module1.pri1","module2.pri1"})
	public String test1(){
		return "datatable";
	}
	
	@RequestMapping("test2")
	@AuthCheck(privileges = {"module1.pri1"}, isRedirect = true)
	public String test2(){
		return "";
	}
	
	@RequestMapping("example")
	public String test3(){
		return "example";
	}
	
	@RequestMapping("purchaseOrderList")
	public String test4(){
		return "purchase/purchaseOrderList";
	}
	
}
